<!DOCTYPE html>
<html lang="zh-CN">

<head>
    {% block head %}
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>{% block title %}{% endblock title %}</title>
        {% block daima %} {% endblock daima %}

        <link href="{{ url_for('static', filename = 'css/bootstrap.min.css') }}" rel="stylesheet"/>
        <link href="{{ url_for('static', filename = 'css/x.css') }}" rel="stylesheet">
        <link href="{{ url_for('static', filename = 'css/style.css') }}" rel="stylesheet">
        <link rel="stylesheet" href="https://cdn.bootcss.com/normalize/8.0.1/normalize.min.css">
    {% endblock %}
</head>

<body class="backgroud1">

<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{{ url_for('blog.index') }}">
                首页
            </a>
            {#                    <h3>PLX#}
            {#                    </h3>#}
            {#                <br>#}
            {#                    <h2>#}
            {#                        BLOG#}
            {#                    </h2>#}
            {#                    <img src="{{ url_for('static', filename='pics/logo.jpg') }}" alt=""> </a>#}
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li>
                    <a href="{{ url_for('blog.show_my_blog') }}">我的博客</a>
                </li>
                <li>
                    <a class="nav-link" href="{{ url_for('admin.new_post') }}">发表新博客</a>
                </li>
                <li>
                    <a class="nav-link" href="{{ url_for('blog.search') }}">搜索</a>
                </li>
                   <li>
                    <a class="nav-link" href="{{ url_for('blog.log') }}">日志</a>
                </li>
                <li>
                    {% if current_user.is_authenticated %}
                        <a href="{{ url_for('admin.setting') }}">设置</a>
                    {% endif %}
                </li>
                <li>
                    <a href="https://gitee.com/Yuandaorrr/" target="_blank">我的gitee</a>
                </li>

            </ul>

            {#            <form action="/show_search" method="POST" class="navbar-form navbar-left">#}
            {#                <div class="form-group">#}
            {#                    <input type="text"  name="username" class="form-control" placeholder="输入搜索关键字">#}
            {#                </div>#}
            {#                <button type="submit" class="btn btn-default">搜索</button>#}
            {# <a href="{{ url_for('.show_category', category_id=post.category.id) }}" style="color:#6699FF">{{ post.category.name }}</a>#}
            {#            </form>#}
            {#            <form>#}
            {#                <legend>Please sign in:</legend>#}
            {#                <input type="text" name="username"/>#}
            {#                <br/>#}
            {#                <input type="password" name="password"/>#}
            {#                <br/>#}
            {#                <button type="submit">提交</button>#}
            {#            </form>#}

            <ul class="nav navbar-nav navbar-right">

                <li><a class="btn" href={{ url_for('admin.login') }}>登录</a></li>

                <li><a class="btn" href={{ url_for('admin.register') }}>注册</a>
                </li>
            </ul>

        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="container">


    {#    <div class="row">#}
    {#        <div class="col-md-3">#}
    {#            <div class="myself">#}
    {#                <a>#}
    {##}
    {##}
    {#                </a>#}
    {#            </div>#}
    {#        </div>#}
    {##}
    {#        <div class="col-md-4">#}
    {#            <input id="q" type="text" placeholder="输入搜索关键字">#}
    {#        </div>#}
    {##}
    {#        <div class="col-md-1">#}
    {#            <button id="s"#}
    {#                    class="btn u-btn-white g-color-primary--hover g-bg-secondary g-font-weight-600 g-font-size-13 text-uppercase rounded g-py-12 g-px-20"#}
    {#                    type="submit">#}
    {#                <span class="g-hidden-md-down">搜索</span>#}
    {#                <i class="g-hidden-lg-up fa fa-search"></i>#}
    {#            </button>#}
    {#        </div>#}
    {##}
    {#        <div class="col-md-1">#}
    {##}
    {#        </div>#}
    {#        <div class="col-md-1">#}
    {##}
    {#        </div>#}
    {##}
    {#        <div class="col-md-1">#}
    {##}
    {#        </div>#}
    {#    </div>#}


    {#    {% block navbar %}#}
    {##}
    {#        <ul class="nav nav-pills navbar-fixed-top" style="margin-top:60px">#}
    {#            <li class="nav-item">#}
    {#                <a class="nav-link" href="{{ url_for('blog.index') }}">首页</a>#}
    {#            </li>#}
    {#            <li class="nav-item">#}
    {##}
    {#            </li>#}
    {#            <li class="nav-item">#}
    {##}
    {#            </li>#}
    {#            <li class="nav-item">#}
    {##}
    {#            </li>#}
    {#            <li class="nav-item">#}
    {##}
    {#            </li>#}
    {#        </ul>#}
    {#    {% endblock %}#}


    <div class="row">
        <br>
    </div>


    {#    <div class="main">#}
    {#        {% for message in get_flashed_messages(with_categories=True) %}#}
    {#            <div class="alert alert-{{ message[0] }}" role="alert">#}
    {#                <button type="button" class="close" data-dismiss="alert">&times</button>#}
    {#                {{ message[1] }}#}
    {#            </div>#}
    {#        {% endfor %}#}
    {##}
    {#    </div>#}

    <div class="row">
        <div>
            {% block content %}
            {% endblock content %}

            {% block footer %}
            {% endblock %}

        </div>

        {#        {% block subhead %}#}
        {#        {% endblock subhead %}#}

        {% block scripts %}
            <script type="text/javascript"
                    src="{{ url_for('static', filename='js/jquery-3.2.1.slim.min.js') }}"></script>
            <script type="text/javascript" src="{{ url_for('static', filename='js/popper.min.js') }}"></script>
            <script type="text/javascript" src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
            <script type="text/javascript" src="{{ url_for('static', filename='js/script.js') }}"></script>
            <!-- <script type="text/javascript" src="https://cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script> -->
            {{ moment.include_moment(local_js=url_for('static', filename='js/moment-with-locales.min.js')) }}
            {{ moment.locale('zh-cn') }}
        {% endblock %}
    </div>


</div>

</body>

</html>
